﻿@model IPagedList<Propro.Models.Project>

@{
    ViewBag.Title = "Projects";
}

@Scripts.Render("~/Scripts/search.js")

<span class="h2">Projects</span>
<form method="get" action="@Url.Action("List")" data-otf-ajax="true" data-otf-target="#projectList" id="searchForm">

    <input type="search" name="searchTerm" data-otf-autocomplete="@Url.Action("Autocomplete")" />
    <input type="submit" value="Search By Name" />

</form>


@Html.Partial("_Projects", Model)

@if (User.Identity.IsAuthenticated)
{
    @Html.ActionLink("Create new project", "addProject", "Projects")
}








